package cn.wit.db.entity;

import cn.wit.db.mapper.RoleMapper;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.Set;

public class Employees {
    private Integer eno;

    private String password;

    private String ename;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date ebirth;

    private Byte esex;

    private String idcard;

    private String standardCulture;

    private String content;

    private String nation;

    private String phone;

    private String email;

    private String school;

    private String major;

    private String address;

    private Integer dno;

    private String duty;

    private Integer absence;

    private Integer overtime;

    private Integer esalary;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date hiredate;

    private Date dismisstime;

    private String bank;

    private String political;

    private String marriage;

    private String diploma;
    private Set<Role> roles;

    public Integer getEno() {
        return eno;
    }

    public void setEno(Integer eno) {
        this.eno = eno;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public Date getEbirth() {
        return ebirth;
    }

    public void setEbirth(Date ebirth) {
        this.ebirth = ebirth;
    }

    public Byte getEsex() {
        return esex;
    }

    public void setEsex(Byte esex) {
        this.esex = esex;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public String getStandardCulture() {
        return standardCulture;
    }

    public void setStandardCulture(String standardCulture) {
        this.standardCulture = standardCulture;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getDno() {
        return dno;
    }

    public void setDno(Integer dno) {
        this.dno = dno;
    }

    public String getDuty() {
        return duty;
    }

    public void setDuty(String duty) {
        this.duty = duty;
    }

    public Integer getAbsence() {
        return absence;
    }

    public void setAbsence(Integer absence) {
        this.absence = absence;
    }

    public Integer getOvertime() {
        return overtime;
    }

    public void setOvertime(Integer overtime) {
        this.overtime = overtime;
    }

    public Integer getEsalary() {
        return esalary;
    }

    public void setEsalary(Integer esalary) {
        this.esalary = esalary;
    }

    public Date getHiredate() {
        return hiredate;
    }

    public void setHiredate(Date hiredate) {
        this.hiredate = hiredate;
    }

    public Date getDismisstime() {
        return dismisstime;
    }

    public void setDismisstime(Date dismisstime) {
        this.dismisstime = dismisstime;
    }

    public String getBank() {
        return bank;
    }

    public void setBank(String bank) {
        this.bank = bank;
    }

    public String getPolitical() {
        return political;
    }

    public void setPolitical(String political) {
        this.political = political;
    }

    public String getMarriage() {
        return marriage;
    }

    public void setMarriage(String marriage) {
        this.marriage = marriage;
    }

    public String getDiploma() {
        return diploma;
    }

    public void setDiploma(String diploma) {
        this.diploma = diploma;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", eno=").append(eno);
        sb.append(", password=").append(password);
        sb.append(", ename=").append(ename);
        sb.append(", ebirth=").append(ebirth);
        sb.append(", esex=").append(esex);
        sb.append(", idcard=").append(idcard);
        sb.append(", standardCulture=").append(standardCulture);
        sb.append(", content=").append(content);
        sb.append(", nation=").append(nation);
        sb.append(", phone=").append(phone);
        sb.append(", email=").append(email);
        sb.append(", school=").append(school);
        sb.append(", major=").append(major);
        sb.append(", address=").append(address);
        sb.append(", dno=").append(dno);
        sb.append(", duty=").append(duty);
        sb.append(", absence=").append(absence);
        sb.append(", overtime=").append(overtime);
        sb.append(", esalary=").append(esalary);
        sb.append(", hiredate=").append(hiredate);
        sb.append(", dismisstime=").append(dismisstime);
        sb.append(", bank=").append(bank);
        sb.append(", political=").append(political);
        sb.append(", marriage=").append(marriage);
        sb.append(", diploma=").append(diploma);
        sb.append("]");
        return sb.toString();
    }

    public Set<Role> getRoles() {
        return roles;
    }

    public void setRoles(Set<Role> roles) {
        this.roles = roles;
    }
}